home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-19 / a7221v1b.zip / PLOT7221.BAT < prev    next >
DOS Batch File  |  1992-03-09  |  1KB  |  35 lines

  1. @echo off
  2. REM  This batch file can be used to convert an AutoCad ADI file to HP7221
  3. REM  format and send the resulting file to the HP7221 plotter.
  4. REM
  5. REM  Usage: PLOT7221 fname [SEND7221 options]
  6. REM
  7. REM  fname is the name (excluding the extension) of the file to be converted
  8. REM  and plotted.  It is assumed that the input file's extension is .PLT.
  9. REM  The file created by adi7221 will have the extension .HPP.
  10. REM
  11. REM  SEND7221 options, if included, are passed along to the SEND7221 command.
  12. REM
  13. REM  Note:  It is critical that fname come before any SEND7221 options.
  14.  
  15. IF %1. == . GOTO USAGE
  16. ADI7221 %1.PLT %1.HPP
  17. IF ERRORLEVEL 1 GOTO ADIERROR
  18. SEND7221 %1.HPP %2 %3 %4 %5 %6 %7 %8 %9
  19. IF ERRORLEVEL 1 GOTO SENDERROR
  20. GOTO END
  21.  
  22. :USAGE
  23.    ECHO Usage: PLOT7221 fname [SEND7221 options]
  24.    GOTO END
  25.  
  26. :ADIERROR
  27.    ECHO ADI7221 failed.  If necessary, recreate the .PLT file and try again.
  28.    GOTO END
  29.  
  30. :SENDERROR
  31.    ECHO SEND7221 failed.  Check the plotter and try again.
  32.    GOTO END
  33.  
  34. :END
  35.